$INCLUDE: 'C:\FG\FASTGRAF.FI'

      PROGRAM MAIN

      INTEGER DELAY, JUMP
      PARAMETER (DELAY=2)
      PARAMETER (JUMP=4)

      INTEGER I
      INTEGER OLD_MODE
      INTEGER FG_AUTOMODE, FG_GETMAXX, FG_GETMAXY, FG_GETMODE

      CALL FG_INITPM
      OLD_MODE = FG_GETMODE()
      CALL FG_SETMODE(FG_AUTOMODE())

      CALL FG_SETCOLOR(15)
      CALL FG_MOVE(0,JUMP)
      CALL FG_DRAW(FG_GETMAXX(),JUMP)
      CALL FG_DRAW(FG_GETMAXX(),FG_GETMAXY()-JUMP)
      CALL FG_DRAW(0,FG_GETMAXY()-JUMP)
      CALL FG_DRAW(0,JUMP)
      CALL FG_WAITKEY

      DO 10 I = 1,6
         CALL FG_PAN(0,JUMP)
         CALL FG_WAITFOR(DELAY)
         CALL FG_PAN(0,0)
         CALL FG_WAITFOR(DELAY)
10    CONTINUE

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END
